/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

import java.awt.Graphics;
import java.awt.image.BufferedImage;

/**
 *
 * @author Amin
 */

class BackGround1 extends _PlacardElement
{
    private _Caddy worldIn;
    private BufferedImage image = null;
    double scalierung = 1;
    BackGround1(_Caddy worldIn)
    {
        super(0,0,"");
        X = 0;
        Y = 0;
        this.worldIn = worldIn;
        image = new Paths().giveImage(Paths.GREEN_BOARD);
    }
    @Override
    public void paint(Graphics g)
    {
        g.drawImage(image,
                 
                (int)((X)/scalierung), 
                (int)((Y)/scalierung),
                (int)((worldIn.breite)/scalierung),
                (int)((worldIn.hohe)/scalierung), 
                null);
    }
    @Override
    public void updatePosition()
    {
    }
    @Override
    public double getX() {
        return X;
    }

    @Override
    public double getY() {
        return Y;
    }
}

